# Author:Zhang Yu
import json
class City:
    __city_json = []
    def __init__(self):
        with open("city.json","r",encoding="utf-8") as load_f:
            self.city_json = json.load(load_f)

    def get_provinces(self):
        provinces = []
        for p in self.city_json:
            province = p["name"]
            provinces.append(province)
        return provinces

if __name__ == '__main__':
    city = City()
    citys = city.get_provinces()
    for c in citys:
        print(c)